package cn.topevery.garden.entity.dto;

import cn.topevery.garden.entity.po.MaintenanceFile;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 保养记录 DTO
 *
 * @author code-generate
 * @date 2022-02-17
 */
@Data
@ApiModel(value = "MaintenanceRecordDTO", description = "保养记录 DTO")
public class MaintenanceRecordDTO implements Serializable{
    /**
     * 自增id
     */
    private Integer id;

        /** 记录编号 */
    @ApiModelProperty(value = "记录编号")
    private String recordCode;

    /** 记录时间 */
    @ApiModelProperty(value = "记录时间")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date;

    /** 树木id */
    @ApiModelProperty(value = "树木id")
    private Integer treeId;

    /** 保养内容 */
    @ApiModelProperty(value = "保养内容")
    private String desc;

    /** 保养依据 */
    @ApiModelProperty(value = "保养依据")
    private String basis;

    /** 出动人 */
    @ApiModelProperty(value = "出动人")
    private String person;

    /** 出动车 */
    @ApiModelProperty(value = "出动车")
    private String car;

    /** 保养公司 */
    @ApiModelProperty(value = "保养公司")
    private String company;

    /** 附件 */
    @ApiModelProperty(value = "附件url")
    private String fileUrl;

    @ApiModelProperty(value = "附件")
    private List<MaintenanceFile> fileList;

    @ApiModelProperty(value = "养护计划id")
    private Integer planId;
}
